<?php 
//获取反馈二维码
	$return = array(); 
	if (isset($_GET['device']) && isset($_GET['version']) && isset($_GET['city'])) {
	
		$value = 'http://pay.hispot.cn/app/h5/feedback.php?device='.$_GET['device'].'&version='.$_GET['version'].'&city='.$_GET['city'];
		file_put_contents("./getFeedback.log",$value.PHP_EOL,FILE_APPEND);
		$return['code'] = 10000;
		$return['data'] = scerweima($value);
	}else{
		$return['code'] = 10001;
		$return['data']	= 'Lack of necessary parameters';
	}
	
	echo json_encode($return);
	
	function scerweima($url=''){  
	    include_once('./phpqrcode/phpqrcode.php');  
	      
	    $value = $url;                  //二维码内容  
	      
	    $errorCorrectionLevel = 'L';    //容错级别   
	    $matrixPointSize = 5;           //生成图片大小    
	      
	    //生成二维码图片  
	    $filename = './images/feedback.png';  
	    QRcode::png($value,$filename , $errorCorrectionLevel, $matrixPointSize, 2);    
	    
	   	return 'https://pay.hispot.cn/app/images/feedback.png';
	} 

 ?>